<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>出库登记</title>
<#include "/admin/common_css.ftl">
<#include "/admin/common_js.ftl">
<script type="text/javascript" src="${base}/apache/common/js/jquery.pager.js"></script>
<script type="text/javascript">
$(document).ready(function() {

	var $deleteDeviceInfoButton = $("#listTable .deleteDeviceInfoButton");
	
	// 删除出库登记信息
	$deleteDeviceInfoButton.click( function() {
		if (confirm("您确定要删除此登记信息吗?") == false) {
			return false;
		}
	});
	});
	</script>
</head>
<body class="list">
	<div class="bar">
		耗材出库登记列表&nbsp;总记录数: ${pager.totalCount} (共${pager.pageCount}页)
	</div>
	<div class="body">
		<form id="listForm" action="list" method="post">
			<div class="listBar">
				<input type="button" class="formButton" id="deleteButton" value="批量删除" url="batchDelete" hidefocus />
				<input type="button" class="formButton" onclick="location.href='${base}/faith/stock/new/0'" value="出库登记" hidefocus />
				&nbsp;&nbsp;
				<label style="font-weight:bold;">名称: </label>
				<input type="hidden" name="propertyList" value="propertyName"/>
				<input type="hidden" name="compareTypeList" value="like"/>
				<input type="text"  class='searchText' name="keywordList" value="${(pager.keywordList[0])!}" />
				<label style="font-weight:bold;">型号规格: </label>
				<input type="hidden" name="propertyList" value="specificationType"/>
				<input type="hidden" name="compareTypeList" value="like"/>
				<input type="text"  class='searchText' name="keywordList" value="${(pager.keywordList[1])!}" />
				
				<input type="button" id="searchButton" class="formButton" value="搜 索" hidefocus />
				&nbsp;&nbsp;
				<label>每页显示: </label>
				<select name="pageSize" id="pageSize">
					<option value="10"<#if pager.pageSize == 10> selected</#if>>
						10
					</option>
					<option value="20"<#if pager.pageSize == 20> selected</#if>>
						20
					</option>
					<option value="50"<#if pager.pageSize == 50> selected</#if>>
						50
					</option>
					<option value="100"<#if pager.pageSize == 100> selected</#if>>
						100
					</option>
				</select>
			</div>
			<table id="listTable" class="listTable">
				<tr>
					<th class="check">
						<input type="checkbox" class="allCheck" />
					</th>
					<th>
						<a href="#" class="sort" name="code" hidefocus>出库编号</a>
					</th>
					<th>
						<a href="#" class="sort" name="date" hidefocus>出库日期</a>
					</th>
					<th>
						<a href="#" class="sort" name="price" hidefocus>出库总额</a>
					</th>
					<th>
						<a href="#" class="sort" name="stockor" hidefocus>经手人</a>
					</th>
					<th>
						<a href="#" class="sort" name="description" hidefocus>摘要</a>
					</th>
					<th>
						<a href="#" class="sort" name="comments" hidefocus>备注</a>
					</th>
					<th>
						<span>操作</span>
					</th>
				</tr>
				<#list pager.result as stock>
					<tr>
						<td>
							<input type="checkbox" name="ids" value="${stock.id}" />
						</td>
						<td>
							${stock.code}
						</td>
						<td>
							${stock.date}
						</td>
						<td>
							${stock.price}
						</td>
						<td>
							${stock.stockor}
						</td>
						<td>
							${stock.description}
						</td>
						<td>
							${stock.comments}
						</td>
						<td>
						<a href="../../stockitem/list/${stock.id}/0" title="查看">[查看]</a>
							<a href="../edit/${stock.id}/0" title="编辑">[编辑]</a>
							<a href="../delete/${stock.id}/0"  class="deleteDeviceInfoButton"  title="删 除">[删除]</a>
						</td>
					</tr>
				</#list>
			</table>
			<#if (pager.result?size > 0)>
				<div class="pagerBar">
					<div class="pager">
						<#include "admin/pager.ftl" />
					</div>
				<div>
			<#else>
				<div class="noRecord">没有找到任何记录!</div>
			</#if>
		</form>
	</div>
</body>
</html>